#ifndef OPERATE_IMAGE_H
#define OPERATE_IMAGE_H
#include <string>
#include <thread>

#include "widget.h"

extern std::thread * operate_image_thread;
extern bool name_transfer_end;

void operate_image(QString image_path_qs);

void _operate_image(QString * image_path_qs);

void _encrypt_image(std::string image_path_s, unsigned char * data, int width, int height, int channal);
void _decrypt_image(std::string image_path_s, unsigned char * data, int width, int height, int channal);

void clear_up();

#endif // OPERATE_IMAGE_H
